<template>
  <!-- 首页导航条 -->
  <div id="nav">
    <div class="w navber">
      <h1><router-link to="/" title="我的个人博客">WZY个人博客</router-link></h1>
      <ul>
       <li>
         <router-link to="/">首页</router-link>
       </li>
         <li>
         <router-link to="/lifebeen">生活追忆</router-link>
        </li>
       <li>
          <router-link to="/blogleave">Blog留言</router-link>
        </li>
        <li>
         <router-link to="/aboutme">关于我</router-link>
       </li>
        <li>
         <router-link to="/personBlog">关于友链</router-link>
        </li>
      </ul>
      <div class="search">
       <form action="#" method="get">
         <input type="text" name="搜索" placeholder="请输入您要搜素的内容" class="search-input">
         <button type="submit" class="iconfont icon-sousuo"></button>
       </form>
      </div>
   </div>
  </div>
</template>

<script type="text/javascript">
export default {
  name:'AppNav',
};

</script>

<style lang="less" scoped>
// 引入外部公共css样式初始化
@import  '../assets/css/reset.css';
@import '../assets/fonts/iconfont.css';
#nav{
  position: fixed;
  top: 0;
  width: 100%;
  margin-bottom:0px;
  background-color:#222;
  z-index: 100;
  .navber{
    height: 52px;
    line-height: 52px;
    color: #fff;
    font-weight: 400;
    // font-size: 18px;
    font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif;
    h1{
      float: left;
      width: 200px;
      font-family: "草书";
    }
    }
  }
.navber h1 a{
  color: #fff;
}
.navber ul {
  width: 100%;
  margin-left: 50px;
}
.navber ul li{
  float: left;
  width: 130px;
  height: 52px;
  font-size: 16px;
  text-align: center;
}
.navber ul li a{
  display: block;
  width: 130px;
  height: 52px;
}
.navber ul li a.router-link-active{
   background-color: #404040;
}
// .navber .current{
//    background-color: #404040;
// }
.navber .search{
  position: relative;
  float: right;
}
.search .search-input{
  width: 195px;
  height: 30px;
  font-size: 12px;
  padding: 3px 0 3px 10px;
  border-radius: 30px;
  background-color: #FEFEFE !important;
  box-sizing: border-box;
  border: 1px solid transparent;
}
.search .search-input:hover{
  border: 1px solid orange;
}
.search button{
  position: absolute;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 20px;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background-color: #fff;
  cursor: pointer;
}
</style>